package code;

public class reOrderArray {
    public void Solution(int [] array){
        int tem;
        for (int i=0;i<array.length-1;i++){
            for(int j=i;j<array.length-1;j++){
                if(array[j]%2==0 && array[j+1]%2!=0){
                    tem=array[j];
                    array[j]=array[j+1];
                    array[j+1] = tem;
                }
            }
        }
    }
}
